#include "errorscreen.h"



void app_error(const char* text)
{
    TTF_Font * font;
    SDL_Event event;

    font = sdl_load_font("FreeMonoBold.ttf",12);

    sdl_clear_screen(0,0,255);
    SDL_Surface * surface = sdl_draw_text(font,255,255,255,0,0,0,0,0,text,blended);
    SDL_Rect position = {0,0};

    sdl_paint_surface(surface, &position);
    sdl_flip();

    SDL_WaitEvent(&event);

    exit(0);
}
